package com.macro.mall.tiny.modules.oms.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 提现申请表
 * </p>
 *
 * @author tyrone
 * @since 2024-10-31
 */
@Getter
@Setter
@TableName("oms_settle_apply")
@ApiModel(value = "OmsSettleApply对象", description = "提现申请表")
public class OmsSettleApply implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("openId")
    private String openId;

    @ApiModelProperty("提现金额 单位分")
    private Integer fee;

    @ApiModelProperty("申请状态 0已申请 1 审核通过 2审核失败 3提现中 4提现成功 5提现失败")
    private Integer status;

    @ApiModelProperty("提现订单号")
    private String settleOrderId;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("创建时间起")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private Date createTimeStart;

    @ApiModelProperty("创建时间止")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private Date createTimeEnd;



    @ApiModelProperty("审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date assessTime;

    @ApiModelProperty("审核时间起")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private Date assessTimeStart;

    @ApiModelProperty("审核时间止")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)

    private Date assessTimeEnd;


    @ApiModelProperty("微信支付处理完成时间 可以理解为提现到账时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date handleTime;

    @ApiModelProperty("微信支付处理完成时间起 ")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)

    private Date handleTimeStart;

    @ApiModelProperty("微信支付处理完成时间止 ")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    
    private Date handleTimeEnd;

    @ApiModelProperty("审核人员id")
    private Long assessAdminId;

    @ApiModelProperty("审核人员的用户名")
    @TableField(exist = false)
    private String assessAdminUsername;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty
    @TableField(exist = false)
    private Integer pageNum = 1;

    @ApiModelProperty
    @TableField(exist = false)
    private Integer pageSize = 10;

    @ApiModelProperty("错误信息")
    private String errorMsg;

}
